package com.rico.web.testimport.model;

import java.util.Objects;

public class Animal {
    private String name;
    public Animal(){
        System.out.println("Animal已初始化...");
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Animal animal = (Animal) o;
        return Objects.equals(name, animal.name);
    }

}
